def is_prime(x):
    if x <= 1:
        return False
    i = 2
    while i*i <= x:
        if x % i == 0:
            return False
        i += 1
    return True 
print is_prime(4)